<template>
  <div>
    Child2
    <p>仓库中 count is {{ $store.state.count }}</p>
    <p>仓库中 double count is {{ $store.getters.doubleCount }}</p>
  </div>
</template>

<script>
export default {
  mounted () {
    console.log('---state---', this.$store.state.count)
    console.log('---getters---', this.$store.getters.doubleCount)
  },
  updated () {
    console.log('updated---state---', this.$store.state.count)
    console.log('updated---getters---', this.$store.getters.doubleCount)
  }
}
</script>
